package org.chen.flight.feign;

import org.chen.common.email.dto.EmailConfigDTO;
import org.chen.common.email.request.EmailNotificationRequest;
import org.chen.common.flight.dto.FlightApiConfigDTO;
import org.chen.common.result.ResultVO;
import org.chen.common.translate.dto.BaiduTranslateRequestDTO;
import org.chen.common.translate.dto.BaiduTranslateResponseDTO;
import org.chen.flight.feign.fallback.SystemFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(name = "data-translate" , fallback = SystemFeignFallback.class)
public interface BaiDuTranslateClient {

    @PostMapping("/baidu-translate/translate")
    BaiduTranslateResponseDTO baiduTranslate(@Valid @RequestBody BaiduTranslateRequestDTO request);
}
